package com.wxb.service;

import com.alibaba.nacos.common.utils.AbstractAssert;
import com.wxb.domain.MallSmsLogEntity;
import com.wxb.domain.MallUserEntity;
import com.wxb.domain.MallUserLevelEntity;
import org.apache.commons.codec.digest.DigestUtils;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @Date 2025-05-30 14:30
 * @Version 1.0
 * @Description
 * @ClassName IMallUserService
 **/
public interface IMallUserService {
    MallUserEntity queryObject(Long userId);

    MallUserEntity queryByOpenId(String openId);

    List<MallUserEntity> queryList(Map<String, Object> map);

    int queryTotal(Map<String, Object> map);

    void save(String mobile, String password);

    void save(MallUserEntity userVo);

    void update(MallUserEntity user);

    void delete(Long userId);

    void deleteBatch(Long[] userIds);

    MallUserEntity queryByMobile(String mobile);

    long login(String mobile, String password) throws Exception;

    MallSmsLogEntity querySmsCodeByUserId(Long userId);

    int saveSmsCodeLog(MallSmsLogEntity smsLogVo);

    String getUserLevel(MallUserEntity loginUser);
}
